TARGET=s.out
OBJS=${patsubst %.c,%.o,${wildcard source/*.c} ${wildcard source/*/*.c} ${wildcard ../comlib/source/*.c}}
CC=gcc
CFLAGS=-c -Iheader -I../comlib/header -o 
RM=rm -f

${TARGET}:${OBJS}
	${CC} -o $@ $^ -lsqlite3

%.o:%.c
	${CC} ${CFLAGS} $@ $^ 

clean:
	${RM} ${OBJS} ${TARGET}
